package com.gxa.p2p.mapper;

import com.gxa.p2p.pojo.AccountInfo;
import com.gxa.p2p.pojo.Recharge;
import com.gxa.p2p.pojo.UserInfo;
import com.gxa.p2p.pojo.Withdrawal;

import java.util.List;
import java.util.Map;

public interface RechargeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Recharge record);

    int insertSelective(Recharge record);

    Recharge selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Recharge record);

    int updateByPrimaryKey(Recharge record);
    Integer count(Map<String,Object> map);
    List<Recharge> select(Map<String, Object> map);
    List<Recharge> selectLimitLike(Map<String,Object> map);
    List<Recharge> selectLike(Map<String, Object> map);
    List<Recharge> rechargeAll();
    List<Recharge> rechargeByUserId (Integer userId);
    //操作修改AccountInfo
    int updateAccountInfo(AccountInfo accountInfo);

    AccountInfo getAccountInfo(Integer userId);

    UserInfo selectByUserId(Integer userId);

}